package org.x.user.query;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 部门查询入参对象
 *
 * @author 夏包包
 * @date 2025-03-08 13:39:03
 */
@Data
public class DeptQuery {

    /**
     * 部门id
     */
    @NotBlank(groups = { QueryGroup.class }, message = "部门id不能为空")
    @Schema(description = "部门id")
    private String deptId;

    /**
     * 祖先部门ID
     */
    @Schema(description = "祖先部门ID")
    private String ancestorDeptId;

    /**
     * 后代部门ID
     */
    @Schema(description = "后代部门ID")
    private String descendantDeptId;

    /**
     * 深度
     */
    @Schema(description = "深度")
    private Integer depth;
}
